package com.ziyucoding.springboot.labs.lab10.seatdemo.tccscfeign.transactionrecordservice.service;

import com.ziyucoding.springboot.labs.lab10.seatdemo.tccscfeign.transactionrecordservice.dataobject.TransactionalRecordDO;

/**
 * 事务记录服务接口
 *
 * @author ziyucoding
 * @date 2022-11-06
 **/
public interface TransactionalRecordService {

    /**
     * 保存事务记录
     *
     * @param item
     * @return Integer
     **/
    Integer saveTransactionalRecord(TransactionalRecordDO item);

    /**
     * 根据xid查询事务记录
     *
     * @param xid
     * @return Integer
     **/
    TransactionalRecordDO findByXid(String xid);
}
